<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="../menu.jsp" />
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>确认注销账户</title>
<link rel="stylesheet" type="text/css" href="../css/my.css" />
</head>
<body>
    <!-- 确保用户已登录 -->
    <c:if test="${empty username}">
        <script type="text/javascript">
            alert('请先登录！');
            window.location.href = '../login.jsp';
        </script>
    </c:if>
    
    <c:if test="${not empty username}">
        <h1 class="title">确认注销账户</h1>
        <form action="destroy" method="post">
            <table>
                <!-- 确认选项 -->
                <tr>
                    <td>请输入密码：</td>
                    <td><input type="password" name="pwd"></td>
                </tr>
                
                <!-- 按钮行 -->
                <tr>
                    <td></td>
                    <td>
                        <input type="button" value="返回" onclick="window.location.href='showuserinfo.jsp'"/>
                        <input type="submit" value="确认注销" />
                    </td>
                </tr>
            </table>
        </form>
    </c:if>
</body>
</html>